package top.abrsm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;
import java.util.List;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author WuZH
 * @since 2023-11-18
 */
@Data
@TableName ( "car_info" )
@ApiModel ( value = "CarEntity对象", description = "购物车" )
public class CarEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ( "id" )
    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    @ApiModelProperty ( "商品Id" )
    @TableField ( "productId" )
    private String productId;

    @ApiModelProperty ( "学生Id" )
    @TableField ( "stuId" )
    private String stuId;

    @ApiModelProperty ( "数量" )
    @TableField ( "number" )
    private Integer number;

    @TableField ( "createTime" )
    private Date createTime;

    @TableField(exist = false)
    private String actualPrice;

    @TableField ( exist = false )
    private List<FileEntity> fileEntities;
    @TableField(exist = false)
    private String productName;

}
